package com.qdlc.p2p.biz.tpp.model;

import com.qdlc.p2p.common.constant.SinaConstant;
import com.qdlc.p2p.common.util.DateUtil;
/**
 * 新浪开户
 * @author zlhx
 * @version 2.0
 * @date 2015年8月10日 上午9:36:03
 */
public class SinaRegister extends SinaModel{
	
	
	
	/**
	 * 会员类型 默认个人  1个人 ，2企业
	 * 类型（长度）：String(1)
	 */
	private String member_type;
	
	/**
	 * 待签名字符数组
	 */
	private String[] signParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","identity_id","identity_type","member_type"};
	
	/**
	 * 提交字符数组
	 */
	private String[] subParamNames=new String[]{"version","service","request_time","partner_id","_input_charset","sign","sign_type","identity_id","identity_type","member_type"};
	
	public SinaRegister() {
		super();
	}

	public SinaRegister(String member_type, String extend_param, String identity_id) {
		super();
		this.member_type = member_type;
		this.setService("create_activate_member");
		this.setExtend_param(extend_param);
		this.setIdentity_type(SinaConstant.IDENTITY_TYPE_UID);
		this.setIdentity_id(identity_id);
		this.setEncode(SinaConstant.ENCODE_FALSE);
		this.setRequest_time(DateUtil.dateStr3(DateUtil.getNow()));
	}


	/**
	 * 获取 会员类型 
	 * @return 
	 */
	public String getMember_type() {
		return member_type;
	}
	
	/**
	 * 设置  会员类型 
	 * @param 
	 */
	public void setMember_type(String member_type) {
		this.member_type = member_type;
	}

	/**
	 * 获取 待签名字符数组
	 * @return 
	 */
	public String[] getSignParamNames() {
		return signParamNames;
	}

	/**
	 * 设置 待签名字符数组
	 * @param 
	 */
	public void setSignParamNames(String[] signParamNames) {
		this.signParamNames = signParamNames;
	}

	/**
	 * 获取 提交字符数组
	 * @return 
	 */
	public String[] getSubParamNames() {
		return subParamNames;
	}

	/**
	 * 设置 提交字符数组
	 * @param 
	 */
	public void setSubParamNames(String[] subParamNames) {
		this.subParamNames = subParamNames;
	}

}
